import axios from 'axios';

export const getOrder = async () => {
    let res = await axios({
         method:"post",
         url:"api/order/getOrder"
    });
    console.log(res)
    return res.data
} 

export const updateOrder = async (parameter) => {
    let res = await axios({
         method:"post",
         url:"api/order/updateOrder",
         data:{
             parameter
         }
    });
   
    return res.data
} 

export const searchOrder = async (parameter) => {
    let res = await axios({
         method:"post",
         url:"api/order/searchOrder",
         data:{
             parameter
         }
    });
   
    return res.data
} 